import { createRouter, createWebHashHistory } from 'vue-router'
import {staticRoutes} from '@/router/static'
import nProgress from 'nprogress'

const router = createRouter({
    history: createWebHashHistory(),
    routes:staticRoutes
})
router.beforeEach((to,from,next)=>{
    nProgress.configure({showSpinner:false});
    nProgress.start()
    next();

})
router.afterEach(()=>{
    nProgress.done()
})
export default router